### add
extends html

snippet php "PHP tag"
<?php ${1} ?>
endsnippet


snippet t "t"
$${1:retVal} = (${2:condition}) ? ${3:a} : ${4:b};${5}
endsnippet

snippet elseif "elseif"
elseif (${1:/* condition */}) {
	${2:// code...}
}
endsnippet

snippet foreachk "foreachk"
foreach ($${1:variable} as $${2:key} => $${3:value}){
	${4:// code...}
}
endsnippet

snippet > "array k => v"
'${1:key}' => '${2:value}',${3}
endsnippet

snippet th "$this->"
$this->${1}
endsnippet

snippet dump "var_dump()"
var_dump($${1:var});${2}
endsnippet

snippet phpe "php base"
<?php if (!defined('BASEPATH')) exit('No direct access allowed.');
$1
?>
endsnippet

